package cn.lizemin;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @author lzm
 * @version 1.0
 * @description: 启动类
 * @date 2022/3/7 14:37
 */
@SpringBootApplication  //代表springboot应用
@EnableDiscoveryClient  //代表服务注册中心客户端   consul  client
@EnableCircuitBreaker   //开启hystrix服务熔断
public class HystrixApplication {
    public static void main(String[] args) {
        SpringApplication.run(HystrixApplication.class,args);

    }
}
